package cn.lhn.ridersclub.config;

import cn.lhn.ridersclub.util.EmailSender;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;

@Configuration
public class Config {

    @Bean
    public EmailSender emailSender(JavaMailSender sender) {
        return new EmailSender(sender);
    }
}
